<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.util.Calendar"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>

  <!--CREACION DEL FORM  -->                                        
 <html:form  action="/admin/updateFlexValue.do"  method="post" styleId="flexValueSelected" >
  <!--CAMPO OCULTO DEL FORMULARIO: CODIGO  -->
  <input type="hidden" name="flexValueInternalCode" value='<bean:write name="flexValueSelected" property="flexValueInternalCode" />' />
  <input type="hidden" name="flexValueTypeInternalCode" value='<bean:write name="flexValueSelected" property="flexValueTypeInternalCode" />' />
  

<table width="100%"  border="0" cellspacing="0" cellpadding="0" widtd="100%">
  <!--TITULO DEL FORMULARIO DE ACTUALIZACION  -->
  <tr align="left"> 
   <td height="25" colspan="12" align="center" class="titulosenblanco"> 
    <p>
     <STRONG>Actualizacion Del Valor Flexible </STRONG>
    </p>
    <p>&nbsp; </p>
   </td>
   </tr>
  
  <tr align="left">
   <td height="25" colspan="12" class="titulosenblanco">   
    <table width="100%" border="0" cellspacing="3" cellpadding="3" class="titulosenrojo">
  <!--CAMPO 1 DEL FORMULARIO: NOMBRE DEL VALOR FLEXIBLE -->
     <tr>
      <td width="28%">&nbsp;</td>
      <td width="23%" class="celdatabla"><strong>Nombre</strong> (*)&nbsp;&nbsp; 
      </td>
      <td width="46%"> 
       <input type="text" size= "40" class="form"  name="flexValueName" value='<bean:write name="flexValueSelected" property="flexValueName" />'  />
      </td>
      <td width="3%">&nbsp;</td>
     </tr>
  <!--CAMPO 2 DEL FORMULARIO:  CODIGO DEL VALOR FLEXIBLE-->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td width="23%" valign="top" class="celdatabla"><strong>Codigo</strong> 
          (*)  &nbsp;&nbsp; </td>
		  <td width="46%"> 
       <input type="text" size= "40" class="form"  name="flexValueCustomCode" value='<bean:write name="flexValueSelected" property="flexValueCustomCode" />'  />
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>

  <!--CAMPO 3 DEL FORMULARIO:   VIGENCIA
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Vigencia</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%"> 
       <html:select styleClass="form" property="flexValueUse" style="width:215" > 
        <logic:equal name="flexValueSelected" property="flexValueUse" value="S">
          <html:option value = "S" >Si</html:option>
          <html:option value = "N" >No</html:option>
        </logic:equal>
        <logic:equal name="flexValueSelected" property="flexValueUse" value="N">
          <html:option value = "N" >No</html:option>
        <html:option value = "S" >Si</html:option>
        </logic:equal>
       </html:select></td>
		  <td width="3%">&nbsp;</td>
     </tr>

  <!--CAMPO 4 DEL FORMULARIO: VIGENTE DESDE 
      <tr>
        <td width="28%">&nbsp;</td>
        <td class="celdatabla" width="23%"><strong>Vigente Desde</strong> &nbsp;&nbsp; 
        </td>
        <td width="46%">
        <input type="text" size= "40" class="form" value='<bean:write name="flexValueSelected" property="flexValueEffectiveFrom" />'  name="flexValueEffectiveFrom" />
          <a href="javascript:effectiveFrom.popup();">
            <img src="<%= request.getContextPath() + "/images/cal.gif" %>" width="16" 
                  height="16" border="0" alt="Click para seleccionar la fecha">
          </a>
        </td>
        <td width="3%">&nbsp;</td>
      </tr>

  <!--CAMPO 5 DEL FORMULARIO: VIGENTE HASTA  

      <tr>
        <td width="28%">&nbsp;</td>
        <td class="celdatabla" width="23%"><strong>Vigente Hasta</strong> &nbsp;&nbsp; 
        </td>
        <td width="46%">
        <input type="text" size= "40" class="form" value='<bean:write name="flexValueSelected" property="flexValueEffectiveUntil" />'  name="flexValueEffectiveUntil"/>
          <a href="javascript:effectiveUntil.popup();">
            <img src="<%= request.getContextPath() + "/images/cal.gif" %>" width="16" 
                  height="16" border="0" alt="Click para seleccionar la fecha">
          </a>
        </td>
        <td width="3%">&nbsp;</td>
      </tr>-->

  <!--CAMPO 6 DEL FORMULARIO:  DESCRIPCION DEL VALOR FLEXIBLE-->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Descripcion</strong> &nbsp;&nbsp; 
		  </td>
		  <td width="46%"> 
       <textarea  name="flexValueDescription" cols="35" rows="5" class="form"><bean:write name="flexValueSelected" property="flexValueDescription" /></textarea>
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>



  <!--LEYENDA DE TEXTO FIJO DENTRO DEL FORMULARIO   -->
		  <tr> 
			<td class="celdatabla" colspan="3" align="center">&nbsp;Los campos marcados con (*) son obligatorios</td>
			<td width="3%">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4">&nbsp;</td>
		  </tr>
  <!--BOTON DE SUBMIT   -->
		  <tr> 
			<td colspan="4" align="center"><html:image src='<%= request.getContextPath() + "/images/b_ingresar_b1.gif" %>' border="0" value='Guardar' title='Guardar' onclick='submit;' /></td>
		  </tr>
	   </table>
    </td>
  </tr>  
 </html:form>  
</table>
  <!--CALENDARIO   
  <script language="JavaScript">
    var effectiveFrom = new calendar1(document.forms['flexValueSelected'].elements['flexValueEffectiveFrom'],"-");
    var effectiveUntil = new calendar1(document.forms['flexValueSelected'].elements['flexValueEffectiveUntil'],"-");
  </script>-->
<p align="center">
  <html:link page="/admin/manageFlexValue.do">
    <img src="<%= request.getContextPath() + "/images/b_atras.gif" %>" width="24" height="15" border="0"/>
    <br/>
    <span class="celdaayd">Atras</span>
  </html:link>
</p>

